﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

namespace EM11_NhaCungCap
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ServiceKD.ServiceSoapClient proxy = new EM11_NhaCungCap.ServiceKD.ServiceSoapClient("ServiceSoap");
            //if (Request.QueryString["MaNCC"] != null)
            //{
                //int mancc = Int32.Parse(Request.QueryString["MaNCC"]);
                ServiceKD.SanPham[] ds = proxy.layHetSanPham();

                CollectionPager1.PageSize = 9;
                CollectionPager1.DataSource = ds;
                CollectionPager1.BindToControl = DataList1;
                DataList1.DataSource = CollectionPager1.DataSourcePaged;
                DataList1.DataBind();
            //}

        }
    }
}
